import commonService from 'service/common'
export default {
    // 排班信息组员
    async classGradeInfo(data) {
        let dataObj = Object.assign({

        }, data)

        let paramsJson = {
            baseURL: '/webapiThird',
            method: 'get',
            url: 'webapi/class/member',
            params: dataObj
        }
        let jsondata = await commonService.asyncFetchData(paramsJson)
        return jsondata
    },
    //排班信息组长
    async classLeaderGradeInfo(data) {
        let dataObj = Object.assign({

        }, data)

        let paramsJson = {
            baseURL: '/webapiThird',
            method: 'get',
            url: 'webapi/class/classArrangeByGroupLeader',
            params: dataObj
        }
        let jsondata = await commonService.asyncFetchData(paramsJson)
        return jsondata
    },
    //查询所在技能组
    async userClassGroup(data) {
        let dataObj = Object.assign({

        }, data)
        let paramsJson = {
            baseURL: '/webapiThird',
            method: 'get',
            url: 'webapi/skill/listByUserId',
            params: dataObj
        }
        let jsondata = await commonService.asyncFetchData(paramsJson)
        return jsondata
    },
    //查询消息中心的标记工单明细
    async getHomeMarkTaskInfo(id) {
        let paramsJson = {
            method: 'get',
            url: 'issue/issue-log/creatorId/' + id
        }
        let jsondata = await commonService.asyncFetchData(paramsJson)
        return jsondata
    }
}